package com.lottery.pay.service;

import com.alipay.api.AlipayApiException;
import com.lottery.common.contants.ReQueryResult;
import com.lottery.common.entity.PaymentRecords;

import javax.servlet.http.HttpServletRequest;

public interface BasePayService {
    //创建支付订单
    ReQueryResult createPayment(PaymentRecords records) throws AlipayApiException;

    //查询支付订单
    ReQueryResult queryPayment(PaymentRecords records) throws AlipayApiException;

    //订单退款
    ReQueryResult refundPayment(PaymentRecords records);

    //查询退款订单
    ReQueryResult queryRefundPayment(PaymentRecords records);

    //关闭订单
    ReQueryResult closePayment(PaymentRecords records);

    //回调结果处理
    ReQueryResult resultDispose(HttpServletRequest request) throws AlipayApiException;

}
